<template>
  <div class="global-loading__module">
    <div class="tip__item">
      <i class="el-icon-loading" />
      {{tip}}...
    </div>
  </div>
</template>

<script>
export default {
    name: 'GlobalLoadingModule',
    props: {
        tip: {
            type: String,
            default: '加载中',
        },
    },
};
</script>

<style lang="scss" scoped>
.global-loading__module {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba($color: #000000, $alpha: 0.5);
  .tip__item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
  }
}
</style>
